/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gametheory;

/**
 *
 * @author 3mara
 */
public class CrtZoom implements Criteria {

    double threshold = 0.5;
    double nearZRadius = 0.5;
    double weight = 2;

    public double getScore(Camera camera, Person person) {
        double ratio = 0;
        ratio = nearZRadius * 10 / camera.point.distance(person.point);
        double totalnearZ = Test.zooms[camera.zoomLevel] * Math.PI * nearZRadius;
        ratio /= totalnearZ;
//
//        if (ratio < threshold) {
//            ratio /= threshold;
//        } else {
//            ratio /= (1 - threshold);
//            ratio = 1 - ratio;
//        }
        return ratio * weight;
    }
}
